﻿using EcoSystem.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Application.Dtos;

namespace EcoSystem
{
    /// <summary>
    /// 领域模型对应的DTO
    /// </summary>
    public class DirResourceDto : ExtensibleFullAuditedEntityDto<Guid>
    {
        /// <summary>
        /// 上级文件目录ID
        /// </summary>
        public Nullable<Guid> ParentId { get; set; }

        /// <summary>
        /// 目录所属存储块名称
        /// </summary>
        public string BucketName { get; set; }

        /// <summary>
        /// 目录名
        /// </summary>
        public string DirName { get; set; }

        /// <summary>
        /// 目录完整路径
        /// </summary>
        public string DirPath { get; set; }

        /// <summary>
        /// 文件夹图标
        /// </summary>
        public string FolderIcon { get; set; }

        /// <summary>
        /// 目录描述
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remarks { get; set; }

        /// <summary>
        /// 下级目录
        /// </summary>
        public List<DirResourceDto> Children { get; set; }
    }
}
